package com.shuwen.gcdj.bean.equipmentMaintenance.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author XYC
 */
@Data
@ApiModel
public class EquipmentPeriodReq {

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号",required = true)
    @NotEmpty(message = "equipmentCode设备编码不能为空")
    private String equipmentCode;


    /**
     * 查询周期
     */
    @ApiModelProperty(value = "查询周期",required = true)
    @NotNull(message = "Period查询周期不能为空")
    private Integer Period;


    /**
     * 上周期
     */
    @ApiModelProperty("上周期")
    private Integer lastPeriod;


    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;


    /**
     * 结束时间
     */
    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
